<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/manage/common/taglibs.jsp"%>
<div>
    <form id="manage_routeRule_editform" action="${pageContext.request.contextPath}/manage/routerule/routeRule/${action=='create'?'saveJson':'updateJson'}.html" method="post">
      <jodd:form bean="routeRule" scope="request">
        <input name="id" type="hidden" />
        <table class="tableForm" width="100%">
			<input type="hidden" name="partnerId" value="${partnerId}" id="partnerId"/>
			<tr>
				<th>清算渠道API：</th>
				<td><select name="gatewayChannelApi" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
					<c:forEach items="${allChannels}" var="e">
						<option value="${e.GATEWAY_CHANNEL_API}">${e.GATEWAY_CHANNEL_API_DESC}</option>
					</c:forEach>
				</select></td>
			</tr>
			<tr>
				<th>交易类型：</th>
				<td><select name="transactionType" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
					<c:forEach items="${allTransactionTypes}" var="e">
						<option value="${e.key}">${e.value}</option>
					</c:forEach>
				</select></td>
			</tr>					
			<tr>
				<th>子交易类型：</th>
				<td><select name="subTransactionType" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
					<c:forEach items="${allSubTransactionTypes}" var="e">
						<option value="${e.key}">${e.value}</option>
					</c:forEach>
				</select></td>
			</tr>					
			<tr>
				<th>对公对私：</th>
				<td><select name="personalCorporateType" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
					<c:forEach items="${allPersonalCorporateTypes}" var="e">
						<option value="${e.key}">${e.value}</option>
					</c:forEach>
				</select></td>
			</tr>					
			<tr>
				<th>借贷类型 :：</th>
				<td><select name="cardType" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
					<c:forEach items="${allDebitCreditTypes}" var="e">
						<option value="${e.key}">${e.value}</option>
					</c:forEach>
				</select></td>
			</tr>					
			<tr>
				<th>银行编码(CCB)：</th>
				<td>
					<select name="instBankId" editable="false" style="height:27px;" size="20" data-options="required:false" panelHeight="200" class="easyui-combobox" >
						<c:forEach items="${allBank}" var="e">
							<option value="${e.INST_BANK_ID}">${e.INST_BANK_NAME}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<th>规则金额：</th>
				<td><input type="text" name="ruleAmount" data-options="validType:'money'" size="48" placeholder="请输入规则金额..." style="height: 27px;line-height: 27px;" class="easyui-numberbox text" data-options="validType:['length[1,19]']"/></td>
			</tr>
			<tr>
				<th>验证要素类型：</th>
				<td><select name="elementType" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
					<c:forEach items="${allElementTypes}" var="e">
						<option value="${e.key}">${e.value}</option>
					</c:forEach>
				</select></td>
			</tr>
			<tr>
				<th>优先级：</th>
				<td>
					<select name="priority"  editable="false" style="height:27px;width: 30px" panelHeight="auto" class="easyui-combobox " >
						<c:forEach step="1" begin="1" var="e" end="10">
							<c:if test="${channelRouteRuleDo.priority ==e }">
								<option value="${e}" selected="selected">${e}</option>
							</c:if>
							<c:if test="${channelRouteRuleDo.priority != e}">
								<option value="${e}">${e}</option>
							</c:if>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<th>流量权重：</th>
				<td>
					<select name="weight" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
						<c:forEach step="1" begin="0" var="e" end="10">
							<c:if test="${channelRouteRuleDo.weight ==e }">
								<option value="${e}" selected="selected">${e}</option>
							</c:if>
							<c:if test="${channelRouteRuleDo.weight != e}">
								<option value="${e}">${e}</option>
							</c:if>
						</c:forEach>
					</select>
				</td>
			</tr>					
			<tr>
				<th>金额规则：</th>
				<td><select name="calculateType" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
					<c:forEach items="${allCalculateTypes}" var="e">
						<c:if test="${routeRule.calculateType ==e.key }">
							<option value="${e.key}" selected="selected">${e.value}</option>
						</c:if>
						<c:if test="${routeRule.calculateType != e.key }">
							<option value="${e.key}">${e.value}</option>
						</c:if>
					</c:forEach>
				</select></td>
			</tr>
			<tr>
				<th>扩展参数：</th>
				<td><textarea rows="3" cols="40" placeholder="请输入扩展参数..." style="width:300px;" name="extendField" class="easyui-validatebox" data-options="validType:['length[1,200]']"></textarea></td>
			</tr>					
			<tr>
				<th>MEMO：</th>
				<td><input type="text" name="memo" size="48" placeholder="请输入MEMO..." class="easyui-validatebox text" data-options="validType:['length[1,128]']"/></td>
			</tr>					
			<tr>
				<th>状态：</th>
				<td><select name="status" editable="false" style="height:27px;" panelHeight="auto" class="easyui-combobox" >
					<c:forEach items="${allStatuss}" var="e">
						<option value="${e.key}">${e.value}</option>
					</c:forEach>
				</select></td>
			</tr>					
        </table>
      </jodd:form>
    </form>
</div>
